package com.example.phone.account.activity;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.example.phone.R;
import com.example.phone.base.BaseActivity;

public class TestActivity extends BaseActivity {


    @Override
    public void initData() {

    }

    @Override
    public void initView() {
        Fragment fragment1 = new AccountFragment();
        FragmentManager manager = getSupportFragmentManager();
        FragmentTransaction transaction = manager.beginTransaction();
        transaction.replace(R.id.fragment_account,fragment1);
        transaction.commit();




    }

    @Override
    public int initLayout() {
        return R.layout.fragment_account;
    }
}
